﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Commission_settlement.aspx.cs" Inherits="CL.Admin.admin.promotion.Commission_settlement" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>佣金结算</title>
      <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="/css/promotion.css" rel="stylesheet" />
</head>
    
<body>
       <form id="form1" runat="server">
       <!--导航栏-->
    <div class="location">
   <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>佣金结算</span>
    </div>
        <!--/导航栏-->

               <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <div class="l-list">                        
                          <asp:TextBox ID="txtMonth" runat="server" CssClass="input txt rule-date-input" onfocus="WdatePicker({dateFmt:'yyyy-MM'})" OnTextChanged="btnMonthChange_Click" />                         
                          <asp:TextBox ID="txtKeywords" runat="server"  CssClass="keyword"  />
                          <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click">查询</asp:LinkButton>
                    </div>
                    <div class="r-list">   
                         <asp:LinkButton ID="lbtnBalance" runat="server" CssClass="btn" OnClick="lbtnBalance_Click" Style="color: #ffffff;">结算</asp:LinkButton>
                        <asp:LinkButton ID="lbtnAduit" runat="server" CssClass="btn" Style="color: #ffffff;" OnClick="lbtnAduit_Click">审核</asp:LinkButton>    
                        <asp:LinkButton ID="lbtnCharge" runat="server" CssClass="btn" Style="color: #ffffff;" OnClick="lbtnCharge_Click" >打款</asp:LinkButton>                            
                   <asp:LinkButton ID="LinkButton1" runat="server" CssClass="btn" OnClick="lbtnExport_Click" Style="color: #ffffff;">当月导出</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

           <!--列表-->
        <div class="table-container">
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table width="100%" border="0"  cellspacing="0" cellpadding="0" class="ltable">
                        <tr>
                           <th align="center" >选择</th>                        
                            <th align="center">代理账号</th>
                            <th align="center">月份</th>
                            <th align="center">月销售总额</th>
                            <th align="center">结算日期</th>
                            <th align="center">结算点位(万分比)</th>
                            <th align="center">结算金额</th>
                            <th align="center">结算状态</th>    
                             <th align="center"></th>             
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center"> <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;"  />
                             <asp:HiddenField ID="hidId" Value='<%#Eval("SettleMonthID")%>' runat="server" />
                            <asp:HiddenField runat="server" ID="hidAccountID" Value='<%#Eval("AccountID") %>' />
                        </td>                
                        <td  align="center"><%#Eval("AccountCode") %></td>
                        <td align="center"><%#Eval("Month") %></td>
                        <td align="center"><%#Math.Round(double.Parse(Eval("BuyMount").ToString())/100, 2)%></td>
                        <td align="center"><%#Eval("SettleTime") %></td>
                        <td align="center"><%#Eval("RebateNum") %></td>
                        <td align="center"><%#((Convert.ToDouble(Eval("SettleAmount")))/10000 / 100).ToString("N")%></td>
                         <td align="center"><%# Convert.ToString(Eval("SettleStatus"))=="1"?"已结算":Convert.ToString(Eval("SettleStatus"))=="2"?"已审核":Convert.ToString(Eval("SettleStatus"))=="3"?"已发放":"未结算" %><%--<a href="Commission_rebate_edit.aspx?action=<%#CaileEnums.ActionEnum.Edit %>&id=<%#Eval("RebateID")%>">修改</a>--%></td>          
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
          </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
     <script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script src="/admin/js/Commission_settlement.js"></script>
</body>
</html>

